<ion-header-bar class="index_head">
    <button class="button button-icon icon ion-android-arrow-back" ng-click="$ionicGoBack()" style="color: #fff"></button>
    <div class="h1 title"> 客户管理</div>
</ion-header-bar>
<ion-nav-view hide-nav-bar="false" view-title="客户管理">
  <!--<ion-header-bar class="bar-stable bar bar-header" align-title="center">-->
    <!--<button class="button button-clear" style="padding-left: 15px;margin-top: -2px" ui-sref="visitorList({'index':1})">-->
      <!--&lt;!&ndash;自定义返回图标&ndash;&gt;-->
      <!--<i style="display: block;width: 22px;height:22px;background: url('img/back.png') center/22px 22px"></i>-->
    <!--</button>-->
    <!--<div class="title title-center header-item">客户管理</div>-->
  <!--</ion-header-bar>-->
  <ion-content class="wap3-user wap3-center" ng-class="{'wap3-ios-hade':platform.IOSAPP}">
    <div class="myself" style="background-color: #fff">
      <div class="myself-head client-header" ng-if="detail.weixinAppid" style="height: auto;padding-bottom: 6px">
        <div class="row" style="padding: 0 5px">
          <div style="width: 60px">
            <div class="myself-photo" style="margin: 0 auto">
              <img src="img/h.png" ng-if="!detail.photo">
              <img ng-src="{{detail.photo}}?x-oss-process=image/resize,w_750" ng-if="detail.photo">
            </div>
          </div>
          <div class="col col-80">
            <div class="list">
              <div class="ng-binding">{{detail.nickname}}</div>
              <div style="color: #999" ng-if="detail.weixinAppid">来源：微信</div>
            </div>
          </div>
        </div>
      </div>

      <div class="myself-body">

        <div class="list" style="border-bottom: 1px solid #f0eff5">
          <a ng-click="edit.editShow('name')" class="item item-icon-right" style="padding-left: 15px">
            姓名
            <span class="item-note nowrap-cutout" style="max-width: 50%;">{{detail.name}}</span>
            <i class="icon myself-index-icon" style="background-image: url(img/icon/myindex/right.png);"></i>
          </a>
        </div>
        <div class="list">
          <a ng-click="edit.editShow('remark')" class="item item-icon-right"  style="padding-left: 15px">
            备注
            <span class="item-note nowrap-cutout" style="max-width: 50%;">{{detail.remark}}</span>
            <i class="icon myself-index-icon" style="background-image: url(img/icon/myindex/right.png);"></i>
          </a>
        </div>

        <div class="list" style="border-bottom: 1px solid #f0eff5">
          <a ng-click="edit.editShow('mobile')" class="item item-icon-right" style="padding-left: 15px">
            手机
            <span class="item-note nowrap-cutout" style="max-width: 50%;">{{detail.mobile}}</span>
            <i class="icon myself-index-icon" style="background-image: url(img/icon/myindex/right.png);"></i>
          </a>
        </div>
        <div class="list">
          <a ng-click="edit.editShow('email')" class="item item-icon-right"  style="padding-left: 15px">
            邮箱
            <span class="item-note nowrap-cutout" style="max-width: 50%;">{{detail.email}}</span>
            <i class="icon myself-index-icon" style="background-image: url(img/icon/myindex/right.png);"></i>
          </a>
        </div>

        <div class="list" style="border-bottom: 1px solid #f0eff5">
          <a ng-click="edit.editShow('companyName')" class="item item-icon-right" style="padding-left: 15px">
            公司
            <span class="item-note nowrap-cutout" style="max-width: 50%;">{{detail.companyName}}</span>
            <i class="icon myself-index-icon" style="background-image: url(img/icon/myindex/right.png);"></i>
          </a>
        </div>
        <div class="list">
          <a ng-click="edit.editShow('profession')" class="item item-icon-right"  style="padding-left: 15px">
            职位
            <span class="item-note nowrap-cutout" style="max-width: 50%;">{{detail.profession}}</span>
            <i class="icon myself-index-icon" style="background-image: url(img/icon/myindex/right.png);"></i>
          </a>
        </div>
          <div class="list">
              <a ng-click="edit.editShow('starlevel')" class="item item-icon-right" style="padding: 15px">用户等级
                  <span style="float: right">
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[detail.starlevel>=1]"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[detail.starlevel>=2]"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[detail.starlevel>=3]"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[detail.starlevel>=4]"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[detail.starlevel==5]"></i>
                  </span>
              </a>
          </div>
      </div>
    </div>
  </ion-content>
  <div class="client-delete-btn bg-red" ng-click="delete()">删除</div>

</ion-nav-view>